package com.eastfair.venuebooking.dto;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.eastfair.core.base.entity.Entity;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import lombok.Data;
import lombok.Builder;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import java.io.Serializable;

/**
 * <p>
 * 实体类
 * 环节
 * </p>
 *
 * @author linan
 * @since 2022-06-08
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = false)
@Builder
@ApiModel(value = "ExhibitionSegmentSaveDTO", description = "环节")
public class ExhibitionSegmentSaveDTO implements Serializable {

    private static final long serialVersionUID = 1L;
    /**
     * 校验标识
     */
    public interface Check {};
    /**
     * 是否启用：1是；0否
     */
    @ApiModelProperty(value = "是否启用：1是；0否")
    private Integer isEnabled;
    /**
     * 是否删除：1是；0否
     */
    @ApiModelProperty(value = "是否删除：1是；0否")
    private Integer isDeleted;
    /**
     * 项目id
     */
    @ApiModelProperty(value = "项目id")
    private Long projectId;
    /**
     * 子系统id
     */
    @ApiModelProperty(value = "子系统id")
    private Long subsystemId;
    /**
     * 租户id
     */
    @ApiModelProperty(value = "租户id")
    private Long tenantId;
    /**
     * 展会id
     */
    @ApiModelProperty(value = "展会id")
    @NotNull(message = "展会id不能为空",groups = {Check.class})
    private Long exhibitionId;
    /**
     * 环节名称
     */
    @ApiModelProperty(value = "环节名称")
    @Size(max = 255, message = "环节名称长度不能超过255")
    @NotBlank(message = "环节名称不能为空",groups = {Check.class})
    private String segmentName;
    /**
     * 开始时间
     */
    @ApiModelProperty(value = "开始时间")
    @NotNull(message = "开始时间不能为空",groups = {Check.class})
    private LocalDateTime startTime;
    /**
     * 结束时间
     */
    @ApiModelProperty(value = "结束时间")
    @NotNull(message = "结束时间不能为空",groups = {Check.class})
    private LocalDateTime endTime;
    /**
     * 可删除的   1  可删除   0 不可删除
     */
    @ApiModelProperty(value = "可删除的   1  可删除   0 不可删除")
    private Boolean deleteable;

}
